package top.someapp.user;

import top.someapp.arch.Mvp;

/**
 * 用户登录的契约
 *
 * @author zwz
 * Created on 2021-07-22
 */
interface LoginContract {

    interface View extends Mvp.MvpView {

        String getName();

        void setName(String name);

        String getPassword();

        void setPassword(String password);

        void onLoginResult(boolean success, String message);
    }

    interface Presenter extends Mvp.MvpPresenter {

        void doLogin();
    }
}
